/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package simplemetrosystem.model.Element;

import java.awt.Graphics2D;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import simplemetrosystem.model.Element.Interface.HighLightable;
import simplemetrosystem.model.Element.Interface.MetroElement;

/**
 *
 * @author Eric Qian
 */
public class CalElement implements MetroElement, HighLightable {

    public CalElement(MetroEdge[] edges) {
        this.lightFlag = false;
        this.edges = edges;
    }

    public String getName() {
        return "";
    }

    public String getChineseName() {
        return "";
    }

    public String getDisplayName() {
        return "";
    }

    public Element getElement(Document doc) {
        return null;
    }

    public boolean isHighLight() {
        return lightFlag;
    }

    public void setHighLight(boolean lightFlag) {
        this.lightFlag = lightFlag;
        for (int i = 0; i < edges.length; i++) {
            edges[i].setHighLight(lightFlag);
            edges[i].getStationA().setHighLight(lightFlag);
            edges[i].getStationB().setHighLight(lightFlag);
        }
    }

    public void drawHighLight(Graphics2D gg, int matrixSize) {
    }
    private boolean lightFlag;
    private MetroEdge[] edges;
}
